package 软件开发原则.迪米特法则;
//代理人类
public class Agent {
    private Start start;
    private Company company;
    private Fans fans;

    public Start getStart() {
        return start;
    }

    public Company getCompany() {
        return company;
    }

    public Fans getFans() {
        return fans;
    }

    public void setStart(Start start) {
        this.start = start;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public void setFans(Fans fans) {
        this.fans = fans;
    }

    //和粉丝见面的方法
    public void meeting(){
        System.out.println(start.getName()+"和"+fans.getName()+"见面了");
    }
    //和媒体公司洽谈的方法
    public void business(){
        System.out.println(start.getName()+"和"+company.getName()+"洽谈");
    }
}
